package com.imy.alscript.delegate;

import android.app.Activity;
import android.app.Application;
import android.content.Intent;
import android.util.Log;

import com.imy.virtual.client.core.VirtualCore;
import com.imy.virtual.client.hook.delegate.ComponentDelegate;

public class MyComponentDelegate implements ComponentDelegate {
    @Override
    public void beforeApplicationCreate(Application application) {
    }
    @Override
    public void afterApplicationCreate(Application application) {
    }
    @Override
    public void beforeActivityCreate(Activity activity) {
    }
    @Override
    public void beforeActivityResume(Activity activity) {
    }
    @Override
    public void beforeActivityPause(Activity activity) {
    }
    @Override
    public void beforeActivityDestroy(Activity activity) {
    }
    @Override
    public void afterActivityCreate(Activity activity) {
        Log.i("MyComponentDelegate"," afterActivityCreate:"+activity.getClass().getName() +" 进程:"+ VirtualCore.get().getProcessName());
    }
    @Override
    public void afterActivityResume(Activity activity) {
    }
    @Override
    public void afterActivityPause(Activity activity) {
    }
    @Override
    public void afterActivityDestroy(Activity activity) {
    }
    @Override
    public void onSendBroadcast(Intent intent) {
    }
}
